Skip to main content

How Currency Converter are made just by using python???

 


How Currency Converter are made just by using Python???

Hey guys, hope you enjoyed this video and knew something about that how the Currency Converter are made by just using python. If you like this video and gained some knowledge then make sure to hit the like and subscribe button and also share this video to your friends and family so that they can also get some knowledge about this. If you want one video on GUI and API then comment below.

Video's Link


Source Code


with open('Currency.txt') as f:
    lines = f.readlines()

while True:
    currencyDict = {}
    for line in lines:
        parsed = line.split("\t")
        currencyDict[parsed[0]] = parsed[1]

    amount = int(input("Enter amount:\n"))
    print("Enter the name of the currency you want to convert this amount to?
Choose within available option")
    [print(item) for item in currencyDict.keys()]
    currency = input("Please enter one of these values: \n")
    print(f"{amount} INR is equal to {amount * float(currencyDict[currency])}
{currency}")

And This is Currency.txt, you can copy it. 

Argentine Peso 1.414556 0.706936
Australian Dollar 0.018662 53.584309
Bahraini Dinar 0.005027 198.934149
Botswana Pula 0.155038 6.450021
Brazilian Real 0.070317 14.221298
British Pound 0.009850 101.521949
Bruneian Dollar 0.017951 55.706270
Bulgarian Lev 0.022887 43.693653
Canadian Dollar 0.016971 58.923989
Chilean Peso 11.064402 0.090380
Chinese Yuan Renminbi 0.085058 11.756641
Colombian Peso 52.788483 0.018944 
Croatian Kuna 0.088055 11.356522
Czech Koruna 0.284170 3.519020
Danish Krone 0.087104 11.480580
Emirati Dirham 0.049098 20.367390
Euro 0.011702 85.457357
Hong Kong Dollar 0.104188 9.598029
Hungarian Forint 4.132144 0.242005
Icelandic Krona 1.666157 0.600183
Indonesian Rupiah 191.898948 0.005211
Iranian Rial 563.847498 0.001774
Israeli Shekel 0.042938 23.289144
Japanese Yen 1.542556 0.648275
Kazakhstani Tenge 5.698890 0.175473
Kuwaiti Dinar 0.004042 247.400474
Libyan Dinar 0.061230 16.331768
Malaysian Ringgit 0.055952 17.872319
Mauritian Rupee 0.584689 1.710312
Mexican Peso 0.274554 3.642269
Nepalese Rupee 1.600750 0.624707
New Zealand Dollar 0.020051 49.872506
Norwegian Krone 0.117625 8.501626
Omani Rial 0.005140 194.536385
Pakistani Rupee 2.337768 0.427758
Philippine Peso 0.685516 1.458755
Polish Zloty 0.052880 18.910876
Qatari Riyal 0.048664 20.549242
Romanian New Leu 0.057873 17.279131
Russian Ruble 0.999831 1.000169
Saudi Arabian Riyal 0.050134 19.946464
Singapore Dollar 0.017951 55.706270
South African Rand 0.204788 4.883098
South Korean Won 15.981552 0.062572
Sri Lankan Rupee 2.708174 0.369253
Swedish Krona 0.121974 8.198448
Swiss Franc 0.012352 80.961482
Taiwan New Dollar 0.371602 2.691049
Thai Baht 0.437666 2.284845
Trinidadian Dollar 0.090636 11.033083
Turkish Lira 0.181659 5.504825
US Dollar 0.013369 74.799240
Venezuelan Bolivar 6019.011898 0.000166

Comments

Popular posts from this blog

3D Design using Python

  What is  Python , What is  Python Programming   language , Why  Python , What is  Python used for ,  Python 3 ,  10 reason why should you learn Python  , Why  python is best for beginner in programming , Learn  Python for free 3D Design Using Python  Hey guys, hope you enjoyed this video and knew something about turtle module and 3D designing in Python also. So make sure to hit the like and subscribe button and also share this video to your friends and family so that they can also get some knowledge about this If you don't know anything or something about turtle module then comment me, I will surely make a full tutorial on it :) If you have any doubt then feel free to ask :) Video's Link            Source Code import turtle as t import colorsys t . bgcolor ( "black" ) t . speed ( "fastest" ) t . pensize ( 2 ) t .setpos( 50 , 0 ) hue = 0.0 t . hideturtle () for i in range ( 400 ):   ...

ATM in Python- Crazy Coding

  What is  Python , What is  Python Programming language , Why  Python,   What is Python used for ,  Python 3.10.0 ,  10 reason why should you learn Python ,  Why Python is best for beginner in programming ,  Learn Python for free ATM Using Python  Hey guys, hope you enjoyed this video and knew something about that how make ATM using Python . Then make sure to hit the like and subscribe button and also share this video to your friends and family so that they can also get some knowledge about this. If you have any doubt about Python basics then comment me, I will surely make a tutorial on it :) If you have any doubt then feel free to ask :) Video's Link Source Code import time print ( "Welcome to the Crazy Coding Bank " ) time . sleep ( 1 ) print ( "Please enter your atm card" ) time . sleep ( 1 ) print ( "You have succesfully entered your atm card" ) time . sleep ( 1 ) user_balance = 500 password = 0000 pin = int ( input ( "Enter you...

Rings in Python

What is  Python , What is  Python Programming language , Why  Python,   What is Python used for ,  Python 3.10.0 ,  10 reason why should you learn Python ,  Why Python is best for beginner in programming ,  Learn Python for free Rings in Python  Hey guys, hope you enjoyed this video and knew something about turtle module and 3D designing in Python . So make sure to hit the like and subscribe button and also share this video to your friends and family so that they can also get some knowledge about this Video's Link                                Source Code ''' Created by Nikhil Mahato Date = 2/2/22 From India ''' import turtle turtle . bgcolor ( 'black' ) turtle . speed ( 0 ) turtle . pensize ( 2 ) turtle . pencolor ( 'red' ) def drawCircle ( radius ):     for i in range ( 10 ):         turtle . circle ( radius )     ...